<script type="text/javascript">
head.js('{$path_js}/editor/nicEdit.js');
var url_page = '{$base_uri}admin-content/ajax_fect_page/trang-';
var url_save = base_uri+"admin-content/ajax_save";
</script>
<form action="" method="post"
	onsubmit="return validate_save_content();">
<table border="0" class="tbl-edit">
	<tr>
		<td colspan="4" align="right"><input type="button"
			onclick="save_item(url_save,url_page+{$page});" name="save" value="Lưu"></td>
	</tr>
	{if isset($rs->content_id)}
	<tr>
		<td>ID:</td>
		<td colspan="3">{$rs->content_id}<input type="hidden" id="id" name="id"
			value="{$rs->content_id}" /></td>
	</tr>
	{/if}
	<tr>
		<td class="lblEdit">Tiêu đề <em>*</em></td>
		<td class="inputEdit"><input type="text" name="title" id="title"
			value="{if isset($rs->title)}{$rs->title}{/if}" tabindex="1"
			onkeyup="replace_vietnamese('title','alias');" /></td>
		<td class="lblEdit">Từ khóa</td>
		<td class="inputEdit"><input type="text" name="keyword" id="keyword"
			value="{if isset($rs->keyword)}{$rs->keyword}{/if}" tabindex="1" /></td>
	</tr>
	<tr>
		<td class="lblEdit">Alias <em>*</em></td>
		<td class="inputEdit"><input type="text" name="alias" id="alias"
			value="{if isset($rs->alias)}{$rs->alias}{/if}" tabindex="1" /></td>
		<td class="lblEdit">Mô tả</td>
		<td class="inputEdit"><input type="text" name="description"
			id="description"
			value="{if isset($rs->description)}{$rs->description}{/if}"
			tabindex="1" /></td>
	</tr>
	<tr>
		<td class="lblEdit">Hiện</td>
		<td class="inputEdit"><input type="checkbox" {if isset($rs->status) &&
		$rs->status eq 1}checked="checked"{/if} name="status" id="status"
		value="1" tabindex="1" /></td>
		<td class="lblEdit">Chuyên mục</td>
		<td class="inputEdit"><select id="cat_id" name="cat_id" tabindex="2">
			{foreach from=$rs_cat item=cat}
			<option {if isset($rs->cat_id) && $rs->cat_id eq
			$cat->cat_id}selected="selected"{/if}
			value="{$cat->cat_id}">{$cat->title}</option>
			{/foreach}
		</select></td>
	</tr>
	<tr>
		<td class="lblEdit">Nội dung tóm tắt</td>
		<td class="inputEdit" colspan="3"><textarea name="introtext"
			id="introtext" cols="80" rows="5">{if isset($rs->introtext)}{$rs->introtext}{/if}</textarea></td>
	</tr>
	<tr>
		<td class="lblEdit">Nội dung đầy đủ <em>*</em></td>
		<td class="inputEdit" colspan="3"><textarea name="fulltext"
			id="fulltext" cols="80" rows="10">{if isset($rs->fulltext)}{$rs->fulltext}{/if}</textarea></td>
	</tr>
</table>
</form>
